<?php
class Logger_Model_Logger {
	
	private $allLogs;
	private $singleLog;
	
	public function __construct(){
		$this->allLogs = new Logger_Data_Alllogs;
		$this->singleLog = new Logger_Data_Singlelog;
	}
	
	public function getArticle(array $getVars){
		
		if(isset($getVars['page'])){
			$article = $this->singleLog->getData($getVars);
		}
		else {
			$article = $this->allLogs->getData();
		}
		return $article;
		
	}
}